<?php

/**
 * cierre_de_caja form base class.
 *
 * @package    gescell
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class Basecierre_de_cajaForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'              => new sfWidgetFormInputHidden(),
      'updated_at'      => new sfWidgetFormDateTime(),
      'created_at'      => new sfWidgetFormDateTime(),
      'categorias'      => new sfWidgetFormInput(),
      'cierre_anterior' => new sfWidgetFormInput(),
      'monto_ingreso'   => new sfWidgetFormInput(),
      'monto_egreso'    => new sfWidgetFormInput(),
      'monto_saldo'     => new sfWidgetFormInput(),
      'abierto'         => new sfWidgetFormInputCheckbox(),
    ));

    $this->setValidators(array(
      'id'              => new sfValidatorPropelChoice(array('model' => 'cierre_de_caja', 'column' => 'id', 'required' => false)),
      'updated_at'      => new sfValidatorDateTime(array('required' => false)),
      'created_at'      => new sfValidatorDateTime(array('required' => false)),
      'categorias'      => new sfValidatorString(array('max_length' => 100, 'required' => false)),
      'cierre_anterior' => new sfValidatorNumber(array('required' => false)),
      'monto_ingreso'   => new sfValidatorNumber(array('required' => false)),
      'monto_egreso'    => new sfValidatorNumber(array('required' => false)),
      'monto_saldo'     => new sfValidatorNumber(array('required' => false)),
      'abierto'         => new sfValidatorBoolean(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('cierre_de_caja[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'cierre_de_caja';
  }


}
